/* 从index.html提取的关键渲染路径样式 */

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
}

/* 预加载消息样式 */
#preload-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#preload-message .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

/* 旋转动画 */
@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* 错误消息样式 */
.error-message {
    color: #ff0000;
    background-color: #ffeeee;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
}

/* 加载旋转器样式 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* 主内容区域样式 */
.main-content {
    padding: 20px;
    margin-left: 220px;
}

/* 图表容器样式 */
.chart-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 20px;
}

/* 图表样式 */
.chart {
    width: 100%;
    height: 400px;
    background-color: #fff;
}

/* 图表容器显示状态 */
.charts-container {
    display: block;
}



.motion-detected {
    color: #dc3545 !important;
}

.motion-none {
    color: #28a745 !important;
}

/* 预测结果面板样式 */
.prediction-result-panel {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.prediction-result-panel h4 {
    margin: 0 0 10px 0;
    color: #1976d2;
}

.prediction-result-panel p {
    margin: 5px 0;
    color: #424242;
}

.prediction-result-panel strong {
    color: #1565c0;
} 